function filterCsrl(CSRL, ITEM_NBR, TRAIT_STORE_NBR, EFFECTIVE_DATE, EXPIRATION_DATE) {
    var csrlList = [];
    var itemInCSRL = JSON.parse(find_Item_inCSRL(ITEM_NBR, CSRL));
    if (isNull(itemInCSRL)) {
        return [];
    }
    for (var i = 0; i < itemInCSRL.length; i++) {
        var csrlList2 = itemInCSRL[i];
        if (csrlList2.PRICE_TYPE !== 'CS' && (csrlList2.PRICE_TRAIT == TRAIT_STORE_NBR || csrlList2.PRICE_TRAIT == 45)
            && overlaps(csrlList2.EFFECTIVE_DATE, csrlList2.EXPIRATION_DATE, EFFECTIVE_DATE, EXPIRATION_DATE)) {
            csrlList.push(csrlList2);
        }
    }
    return csrlList;
}
